﻿<%@ page contentType="text/html; charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/views-jsp/include/taglib/taglib.jsp" %>
<div class="topNavBar">
        <div class="topleft" >
            <span style="float:left;background-color: #4878E7; height: 45px; line-height: 45px;">
                <img src="${path}/html/images/wanhuakejiLogo.png" onerror="this.onerror='';src='${path}/html/images/defaulPhoto/defaulPhoto.jpg'" style="width: 45px;height: 44px;"/>
            </span>
            <a href="#" target="_parent" style="width: 100%;height: 100%;display: block;">
                <span style="font-size: 25px;background-color: #4878E7; color: #ffffff; font-weight: 500;text-align: center ;height: 45px; line-height: 45px;">智慧工地</span>
            </a>
        </div>
        <div>
            <ul class="rootNav" id="rootNav">
                <c:forEach var="rootMenu" items="${sessionScope.SERVER_SESSION_USER.menuList}" varStatus="status" >
                    <c:choose>
                        <c:when test="${rootMenu.target!=null&&rootMenu.target=='RIGHT_ICON'}">
                            <c:if test="${rootMenu.name=='系统设置'}">
                                <c:set var="systemMenu" value="${rootMenu}" />
                            </c:if>
                        </c:when>
                        <c:otherwise>
                            <li menuId="${rootMenu.meId}"><a href="javascript:void(0);" title="${rootMenu.name}" ${status.index == 0 ? 'class="selected"': ""}><h2>${rootMenu.name}</h2></a></li>
                        </c:otherwise>
                    </c:choose>
                </c:forEach>
            </ul>
        </div>
        <div class="topright" style="line-height: 30px">
            <div class="userBar">
                <div id="systemConfig" class="systemConfig" menuId="${systemMenu.meId}">
                    <c:if test="${systemMenu != null}">
                        <span><div class="panel-icon ${systemMenu.iconCls}" ></div></span>
                    </c:if>
                </div>
                <div class="alarmSign" id="alarmSign"><span class="alarmSign-inner" id="alarmSign-inner"></span></div>
                <div class="userInfo" id="userInfo"><img id="companyLogoImgInit_" src="" onerror="this.onerror='';src='${path}/html/images/defaulPhoto/defaulPhoto.jpg'"/><span>${sessionScope.SERVER_SESSION_USER.directCompany.name}</span></div>
            </div>
        </div>
        <input id="companyLogo_" type="hidden" value="${sessionScope.SERVER_SESSION_USER.directCompany.compLogo}"/>
</div>
